# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libnxml
pkgver=0.18.3
pkgrel=0
pkgdesc="C library for parsing, writing and creating XML 1.0 and 1.1 files or streams"
url="http://www.autistici.org/bakunin/libnxml"
arch="all"
license="LGPL"
makedepends="curl-dev"
subpackages="$pkgname-dev"
source="http://www.autistici.org/bakunin/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="fc420a4b773eca68608ac1d509930a0528c3a41b53fc7cc340c09fd53f92a88afb4091e810d97d59e73a8beeaaeed52dd3c880273ef512a5305800b3ef46717a  libnxml-0.18.3.tar.gz"
